home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 4 / QRZ Ham Radio Callsign Database - Volume 4.iso / files / satelite / msat09.tgz / README-0.9-X < prev    next >
Text File  |  1994-09-17  |  17KB  |  329 lines

  1. NOTE: This release does not include any binaries. More importantly it does
  2. not include the binaries for unzip, lha and xloadimage. These can be found
  3. at most major FTP sites. Alternatively you can download one of the earlier
  4. microsat releases which does include them.
  5.  
  6.  
  7. This is a test release of the Microsat suite converted to use the Athena
  8. Widgets. The reason I did the conversion was that on my system with 8MB of
  9. RAM, using programs based on xview caused my system to swap, also the
  10. programs appeared a little sluggish. Having seen the programs run on Johns
  11. own machine at the 1994 AMSAT-UK Colloquium I knew that my problems were
  12. RAM based ... I have a faster CPU.
  13.  
  14. So I did the conversion. I had done some X11 programming work about four
  15. years ago, but have never used the Athena widgets before. So if you find
  16. any problems in my use of them please drop me a line with a fix. At this
  17. point I would highly recommend that you install the Xaw3d library instead of
  18. the original, as the system looks much better for it.
  19.  
  20. The programs work very much like the originals that John supplied to me on
  21. a disc labelled as version 0.7, however the following functional changes
  22. have been made by me:
  23.  
  24.  
  25. XPB
  26. ---
  27.  
  28. xpb is the only program that needs to be running when a satellite is within
  29. range. This program implements the PACSAT broadcast protocol and is used
  30. to:
  31.  
  32. 1. Capture files that are broadcast
  33. 2. Capture directory entries that are broadcast
  34. 3. Request files from the satellite
  35. 4. Request directory entries from the satellite
  36. 5. Optionally log telemetry data
  37. 6. Optionally log KISS data
  38. 7. Display satellite status messages
  39. 8. Display and record statistics
  40.  
  41. In use, items 1, 2, 7 and 8 occur automatically and do not require any user
  42. intervention. A button is provided to toggle the logging of telemetry
  43. packets to a file named xxxxxxx.tlm for later analysis by xtlm, the label on
  44. the button is changed to reflect the current state. In addition a button is
  45. provided to log all KISS packets to disc, in this case the output file is
  46. named xxxxxxx.kss, the value of xxxxxxx for the telemetry and KISS logs is
  47. determined by the time of that start of the capture and is the time value in
  48. hex.
  49.  
  50. The statistics displayed can be used as a guide to the health of your PACSAT
  51. receive system. At the end of an xpb session, a summary of the statistics is
  52. appended to a file named pb.log in the current directory, this is a text file.
  53.  
  54. The requesting of either files or directory entries from the satellite is
  55. controlled by three buttons, marked "Cancel Fill", "Fill Directory" and "Fill
  56. File" along with an enterable text box. Two of these buttons also appear on
  57. the directory screen. To update the directory entries simply press the Fill
  58. Directory button, a request to fill the directory will be sent immediately
  59. and every time a PB status line is received from the satellite. If your request
  60. is accepted your callsign will appear in the PB status line, this will be
  61. detected and further retransmissions for this particular diretory request will
  62. stop. It is also possible to stop these requests manually by pressing the
  63. Cancel Fill button.
  64.  
  65. The requesting of a file is similar to requesting directory entries except
  66. for two differeneces. Firstly a file number must be entered in the text
  67. box next to the Fill File button, and secondly if the satellite responds
  68. with a "NO -2" response to your request then the request is cancelled. This
  69. response from the satellite indicates a permanent problem associated with
  70. your request, ie the file has been deleted. The file number may be filled
  71. in via the directory program.
  72.  
  73. Every thirty seconds the contents of the hole file for the directory is
  74. written out. This is done in case the proogram should crash, an out of date
  75. directory hole file can lead to duplicates appearing in the directory. I
  76. have also put code in to flush out the other hole files but have not
  77. enabled it. Unlike the directory hole file, an out of date file hole file
  78. does not cause data corruption.
  79.  
  80. I think I have fixed the bug that occurred in all versions prior to this one
  81. whereby duplicate directory entries could occur. This mostly occurred when
  82. dealing with the latest directory entry of the satellite. This should not
  83. be confused with the behaviour of some of the on-board log files that
  84. occur many times in the directory. You will notice that they appear with
  85. different Date/Time entries every time, this is normal.
  86.  
  87.  
  88. XPG
  89. ---
  90.  
  91. This program will list all of the files that are ready for uploading. If a
  92. file is partially uploaded then a value will appear in the Id column to
  93. indicate the file number allocated to that file. To upload a file you simply
  94. double click on the entry in the list. The program then forks a second process
  95. to actually do the uploading leaving the main window available for other uses.
  96. The program will stop you from trying to upload two files simultaneously. A
  97. pipe is created between the two processes to allow status messages from the
  98. child to appear in the main window. It is possible to call message from xpg,
  99. but you will have to press the Update button to display any new messages that
  100. have been created for uploading.
  101.  
  102.  
  103. MESSAGE
  104. -------
  105.  
  106. This program is designed to produce files in a suitable format for
  107. uploading to the PACSATs. The PACSAT file system is very flexible and allows
  108. for any sort of file to be transferred, there is no restriction as to the
  109. contents of the file. The program itself is very straightforward to use and
  110. requires very little description. The program may be run standalone or
  111. called from downloaded, viewtext and xpg, in the first two cases message
  112. is used to reply to an existing message, message is passed the name of the
  113. message to be replied to and takes the destination callsign, and subject
  114. from the original message. In addition a button labelled Quote appears
  115. which allows the original message to be included in the text window with
  116. each line prefixed by the > character.
  117.  
  118. I have taken the opportunity to change the layout of the screen for message,
  119. and included some new features. I have updated the file type button to
  120. include some new file types. In the case of an unlisted file type being
  121. required the "Other -->" entry should be chosen and a textual description
  122. of the file type should be typed into the text box to the right of the
  123. button. The same comments apply to the compression type button and text
  124. field. The button for choosing to use text from the edit window or from a
  125. named file also operates in the same manner. The Banner button uses the
  126. BANNER environment variable for the name of the banner file to use, failing
  127. that it will attempt to find a file named .sig in your root directory.
  128.  
  129.  
  130. XTLM
  131. ----
  132.  
  133. This is a new program. It is designed to display the telemetry either in
  134. real time or from a telemetry capture file, of satellites using the UoSAT
  135. standard for sending telemetry. At present this means that it will only
  136. display telemetry from UO-22, KO-23 and KO-25. The program expects to find
  137. a file called "tlm.cfg" in the current working directory, this means copying
  138. the file kitatlm.cfg to the KO-23 sub-directory, kitbtlm.cfg to the KO-25
  139. sub-directory and uo5tlm.cfg to the UO-22 sub-directory, and renaming them
  140. tlm.cfg.
  141.  
  142. If the environment variable XTLM is not set then the program will operate in
  143. real time, if XTLM is set then the program expects to find a file containing
  144. captured telemetry data in the file named by XTLM. The file format is that
  145. used by the UoS for capturing telemetry. A two byte length field is written
  146. out in Intel format with the least significant byte first, followed by the
  147. data portion of the telemetry packet.
  148.  
  149. xtlm offers the facility to capture the telemetry to disc, the "TLM Log"
  150. button works as a toggle alternating between On and Off as indicated by the
  151. label. The data captured is written to a file named xxxxxxx.tlm in the current
  152. working directory, the value of xxxxxxx depends upon the time that the
  153. telemetry capture was started and is the start time in hex. The other buttons
  154. labelled "Page 0" onwards allow you to see different pages of telemetry data.
  155. A line of statistics about the received telemetry is also displayed.
  156.  
  157. The telemetry configuration files are those that are used by the official
  158. UoS program DTLM. Thanks are due to F1TFQ and IT9DLN for supplying me with
  159. the files for KO-23 and KO-25, I got the file for UO-22 from the freeware
  160. program UO5TLM. The format of the file is quite simple and since my source
  161. code is available I won't describe it. The src directory contains examples
  162. of captured telemetry in the files raw.uo-22, raw.ko-23 and raw.ko-25.
  163.  
  164.  
  165. VIEWTEXT
  166. --------
  167.  
  168. This is usually called by downloaded but can be used directly if needed.
  169. Its purpose is to display downloaded text files, and with this release can
  170. also handle files compressed with PKZIP and LHA provided that the programs
  171. unzip and lha are in your path. To run the program outside of downloaded you
  172. need to specify the name of the .dl file as the first argument. I have left
  173. the text area as editable text, primarily so that it is possible to cut and
  174. paste between viewtext and any other program, such as the text area of
  175. message for example. Any changes to the text in viewtext are not kept. It is
  176. possible to call message from viewtext to enable a reply to be formulated,
  177. the from, to and subject lines are automatically filled in.
  178.  
  179.  
  180. VIEWLOG
  181. -------
  182.  
  183. This is usually called from downloaded, but is actually spawned by phs. This
  184. program will display the contents of the ALxxxxxx, BLxxxxxx, CLxxxxxx,
  185. ELxxxxxx and wdxxxxxx files. The AL files contain details of the FTL0
  186. transactions which are only used for uploads these days. The BL files contain
  187. statistical information about directory broadcasts amonst other things. The CL
  188. files simply list people who have appeared in the PB queue. The EL files
  189. contain information about SEUs that have occured. The wd files contain Whole
  190. Orbit Data and are used to provide information about the values of telemetry
  191. points during the whole of the orbit. Without this mechanism the ground
  192. controllers would have no way of knowing how the performance of the satellite
  193. changed when over unmanned areas. For the WOD function to work, the file
  194. tlm.cfg must be in the current directory, this would usually be the case for
  195. xtlm to work properly.
  196.  
  197. Like viewtext the display area of viewlog is editable so cut and paste between
  198. viewlog and other programs is possible.
  199.  
  200. viewlog does not understand the PACSAT file header. This is done so that
  201. viewlog can be used against log files that have been Extract-ed in
  202. downloaded. viewlog can be used outside of downloaded by using command
  203. line arguments, there are two formats to these arguments. The first format
  204. is to simply specify the name of the log file eg AL940817, the file name
  205. will also appear as the title of the window. The second format is to specify
  206. the title as the first argument and the file name as the second arguments,
  207. this was done to allow viewlog to be called by phs and to retain the correct
  208. title.
  209.  
  210. I would like to thank Andrew G8TZJ for supplying me with the information
  211. needed to view these log files.
  212.  
  213.  
  214. PHS
  215. ---
  216.  
  217. I wrote this program to allow programs that do not understand the PACSAT
  218. file header to be called from downloaded. However I think I have made its
  219. syntax powerful enough to be used in other circumstances. In essence phs
  220. will remove a PACSAT file header, call unzip or lha if needed to decompress
  221. the file contents, and then call the named program with the resultant file
  222. information. It is a command line driven utility that does not require X to
  223. be running. Its syntax is as follows:
  224.  
  225. phs <.dl file> <program to run> <arg1> <arg2> ...
  226.  
  227. arg1 and arg2 and all following arguments are passed to the named program,
  228. followed by the filename of the extracted file body. This file will have
  229. a name based upon the current time and its file type, ie a GIF image file
  230. will have a suffix of .gif etc. This was done for programs that parse the
  231. input file name as a guide to the file contents, the default is to give the
  232. file a .txt suffix. After the called program has ended the temporary file
  233. containing the file body is deleted.
  234.  
  235.  
  236. XWEBER
  237. ------
  238.  
  239. I know very little about this program. I am not active on the PSK satellites
  240. at present and so xweber is untested, I did the conversion to the Athena
  241. Widgets and that was all. Feedback on xweber would be appreciated.
  242.  
  243.  
  244. DIRECTORY
  245. ---------
  246.  
  247. This program displays up to 2000 of the latest satellite directory entries.
  248. They are displayed in date order, and the list can be restricted by changing
  249. the button by the side of the View label. The options are to view all of the
  250. directory entries "All", entries either addressed to you or sent by you "My
  251. Mail", entries that have ALL appearing in the to field "Broadcast", log files 
  252. "Logs" and entries created by the camera "EIS". When receiving the satellite
  253. with xpb the directory will potentially be updated every few seconds, these
  254. changes will not appear until the Update button is pressed.
  255.  
  256. The Fill Directory and Cancel Fill buttons have the same effect as the
  257. buttons on xpb. They send a request to the xpb program (if it is running) to
  258. perform the action. To request one of the files appearing in the list box
  259. you simply double click on the entry, if xpb is running the file number will
  260. appear in the enterable text box in xpb just as if entered manually.
  261.  
  262. A new feature of this program is the Order button. This allows the directory
  263. entries to be re-ordered depending on the visible fields in the list. When
  264. sorting on "From", "To" and "Title" the sorting is case independant so
  265. "G4KLX" will appear next to "g4klx", in cases where the main sorting field
  266. is identical, then the "Date/Time" field is used for ordering the two
  267. entries.
  268.  
  269.  
  270. DOWNLOADED
  271. ----------
  272.  
  273. This program displays all of the downloaded files from satellite. It has a
  274. limit of 2000 entries ! The list can be reduced by using the View selection
  275. button, this has the same entries and actions and the similarly named button
  276. in directory above. Like directory, when receiving files from the satellite
  277. via xpb it is possible that the list will not reflect what has actually been
  278. downloaded, pressing the Update button should get the program into sync with
  279. the downloaded files.
  280.  
  281. To view the contents of downloaded file you simply double click on the entry
  282. in the list box. The program will use the file type entry in the file header
  283. to determine how to display a file, unfortunately some operators are rather
  284. poor at filling these entries in and so you may not get the desired results.
  285. At the moment the program can display most text messages via viewtext, most
  286. image files via xloadimage, and some log files via viewlog. If the file type
  287. is not recognised you should see an error box appearing.
  288.  
  289. The Extract button allows the file body to be extracted from the downloaded
  290. file and places in the msgs sub-directory with its original name, a
  291. confirmation message appears to inform you of the name of the extracted
  292. file. The Reply button calls message with the correct arguments to allow a
  293. reply to be formulated.
  294.  
  295. A new feature of this program is the Order button. This allows the directory
  296. entries to be re-ordered depending on the visible fields in the list. When
  297. sorting on "From", "To" and "Title" the sorting is case independant so
  298. "G4KLX" will appear next to "g4klx", in cases where the main sorting field
  299. is identical, then the "Date/Time" field is used for ordering the two
  300. entries.
  301.  
  302.  
  303.  
  304. It was not possible to change the source in such a way that the same source
  305. could be used for Open Look and the Athena widgets at the change of a
  306. define. Maybe that will happen one day, but the increased flexibility of the
  307. Athena widgets has meant that some of the code is now smaller and simpler.
  308. It is my hope that it will be possible to have the same code used for Open
  309. Look, Athena and Motif one day.
  310.  
  311. For those thinking of porting these programs to other platforms, I wish you
  312. luck. The code is very dependant upon having connected mode AX25 in the
  313. kernel. If you were thinking of just porting the broadcast code to another
  314. platform then things will be easier. Putting the async and KISS layers into
  315. the code would not be too difficult. But beware, much of the code assumes
  316. that these programs are running on an Intel platform which has the same byte
  317. ordering as the Microsats. With a little effort the code could be made
  318. platform independant in the same way that KA9Q is.
  319.  
  320. Please be aware that Linux kernel release 1.1.39 is a bad one. Both me and
  321. John G0ORX have had problems with this version. Version 1.1.41 and later
  322. are fine, and presumably later ones will be too. We both use Alan Cox's
  323. AX25.024 on our machines.
  324.  
  325. Jonathan G4KLX
  326.  
  327. PACSATs: @ UO-22   @ KO-23   @KO-25
  328. Internet: g4klx@g4klx.demon.co.uk
  329.